home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / gamma-bros.swf / scripts / __Packages / classes / fx / BatCStreak.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  530 b   |  26 lines

  1. class classes.fx.BatCStreak
  2. {
  3.    var x;
  4.    var y;
  5.    var id;
  6.    var clip;
  7.    var Name = "batCStreak";
  8.    function BatCStreak(px, py, pid)
  9.    {
  10.       this.x = px;
  11.       this.y = py;
  12.       this.id = pid;
  13.       _root.d = _root.d + 1;
  14.       this.clip = _root.attachMovie("batCStreak","batCStreak" + this.id + "Clip",_root.d);
  15.       this.clip._x = this.x;
  16.       this.clip._y = this.y;
  17.    }
  18.    function main()
  19.    {
  20.       if(this.clip.end)
  21.       {
  22.          _root.removeFX("batCStreak" + this.id);
  23.       }
  24.    }
  25. }
  26.